﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ESHOP.Domain;
using System.Web.UI;
using ESHOP.Domain;

namespace ESHOP.ADMIN.Common
{
    public class Authentication:Page
    {
        protected override void OnInit(EventArgs e)
        {
            
            base.OnInit(e);
            Authenticate();
        }
        public void Authenticate()
        {
        }
        public USER_ADMIN UserLogin
        {
            get
            {
                return Session[SessionKey.UserLogin] as USER_ADMIN;
            }
            set
            {
                value = Session[SessionKey.UserLogin] as USER_ADMIN;
            }
        }
        public bool CheckPemission()
        {
            if (UserLogin == null)
            {
                return false;
            }
            return true;
        }

        
    }
    
}